package decorator.io;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.InputStream;

/**
 * @author jacob
 * @Date 2020/12/18 01:01
 */
public class InputTest {
    public static void main(String[] args) {
        int c;
        try {
            InputStream inputStream =
                    new LowerCaseInputStream(
                            new BufferedInputStream(
                                    new FileInputStream("src/main/inputTest.txt")));
            while ((c = inputStream.read()) > 0){
                System.out.print((char) c);
            }
            System.out.println();
            inputStream.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
